package com.sihai.ehr.model.biz;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.sihai.core.BaseEntity;

/**
 * 培训教育评价
 * 
 * @author henry
 * 
 */
@Entity
public class TrainAssess extends BaseEntity<Long> {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;

	/** 组织结构ID */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "plan_id")
	private TrainPlan trainPlan;

	/** 培训教育评价ID */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "weight_id")
	private TrainAssessWeight trainAssessWeight;
	/** 评价人 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "work_id")
	private EmployeeinfoWork employeeinfoWork;
	/** 权重类型 */
	private int assessType; // 内训:0,外训:1
	private String assessContent;
	private Float score;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public TrainPlan getTrainPlan() {
		return trainPlan;
	}

	public void setTrainPlan(TrainPlan trainPlan) {
		this.trainPlan = trainPlan;
	}

	public TrainAssessWeight getTrainAssessWeight() {
		return trainAssessWeight;
	}

	public void setTrainAssessWeight(TrainAssessWeight trainAssessWeight) {
		this.trainAssessWeight = trainAssessWeight;
	}

	public EmployeeinfoWork getEmployeeinfoWork() {
		return employeeinfoWork;
	}

	public void setEmployeeinfoWork(EmployeeinfoWork employeeinfoWork) {
		this.employeeinfoWork = employeeinfoWork;
	}

	public int getAssessType() {
		return assessType;
	}
	
	public void setAssessType(int assessType) {
		this.assessType = assessType;
	}
	
	public String getAssessContent() {
		return assessContent;
	}

	public void setAssessContent(String assessContent) {
		this.assessContent = assessContent;
	}

	public Float getScore() {
		return score;
	}

	public void setScore(Float score) {
		this.score = score;
	}

}
